<section>
	<div class="page-header">
		<h2><?php echo $title; ?></h2>
	</div>
	
	<?php if ($logs) : ?>
	<table class="zebra-striped condensed-table1">
		<thead>
			<tr>
				<th>Operation</th>
				<th>Action</th>
				<th>User</th>
				<th>IP Address</th>
				<th width="20%">Date</th>
			</tr>
		</thead>
		<tbody>
			<?php
				foreach ($logs as $log) :
				
				switch ($log['operation'])
				{
					case 'CREATE': $class = 'success'; break;
					case 'UPDATE': $class = 'notice'; break;
					case 'DELETE': $class = 'important'; break;
					default: $class = ''; break;
				}
			?>
			<tr>
				<td><span class="label <?php echo $class; ?>"><?php echo $log['operation']; ?></span></td>
				<td><?php echo $log['action']; ?></td>
				<td><?php echo $log['firstname'] . ' ' . $log['lastname']; ?></td>
				<td><?php echo $log['ip_address']; ?></td>
				<td><?php echo display_time($log['created']); ?></td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
	<?php echo $this->pagination->create_links(); ?>
	<?php else : ?>
	<p>No records found.</p>
	<?php endif; ?>
	
</section>